# from PySide6.QtCore import Signal, QObject
import os
import sys

# 必须在PyQt6导入前设置！
if getattr(sys, 'frozen', False):
    # 解决Windows 10 DLL加载问题
    os.environ["QT_PLUGIN_PATH"] = os.path.join(
        sys._MEIPASS, "PyQt6", "Qt6", "plugins"
    )
    # 添加系统路径避免DLL查找失败
    sys.path.append(sys._MEIPASS)

import PyQt6.QtCore
# from PyQt6.QtCore import pyqtSignal, QObject

class UISignal(PyQt6.QtCore.QObject):
    set_devices_signal = PyQt6.QtCore.pyqtSignal(list)
    set_log = PyQt6.QtCore.pyqtSignal(object)

# 创建一个全局实例
ui_signal = UISignal()

